
export const appRouter = [{
  path: '/',
  name: '商品',                  
  redirect:'/goods'
}, {
  path: '/goods',
  name: '商品',                  
  component: resolve => { require(['@/components/goods/goods'], resolve) }
}, {
  path: '/ratings',
  name: '评价',                  
  component: resolve => { require(['@/components/ratings/ratings'], resolve) }
}, {
  path: '/seller',
  name: '商家',                  
  component: resolve => { require(['@/components/seller/seller'], resolve) }
}];

export const router = [
  ...appRouter // 此处必须使用...进行合并
];